Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore(tabulation): Keydown refactor #79

Merged
merged 32 commits into from
Sep 28, 2024
Merged

Chore(tabulation): Keydown refactor #79

merged 32 commits into from
Sep 28, 2024

Conversation

e11sy
Copy link

@e11sy e11sy commented Aug 9, 2024

This PR is related to the #75 issue
This PR is a part of global work on List 2.0

Problems

  • Nesting works incorrectly
  1. If user presses shift + tab, then item moves to the bottom of sublist
  2. On shift + tab, item should decrease own nesting level and nesting level of the sublist
  3. On tab only one current item should increase nesting level

Solutions

  • Refactor keydown behaviour

Status

Additional

Refactored the architecture
Now NestedList class initializes all types of renderers and passes them to tabulator

in next pull request i will make nesting and ordered list customization

@e11sy e11sy changed the base branch from main to release/2.0 August 9, 2024 19:32
@e11sy e11sy requested a review from neSpecc September 10, 2024 13:56
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
- improved docs
- get rid of level usage in renderers and tabulator
- improved naming
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
- added mergeCurrentItemWithPrevious method
- added splitItem method
- added splitList method
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Show resolved Hide resolved
src/types/ListRenderer.ts Outdated Show resolved Hide resolved
src/ListRenderer/ListRenderer.ts Outdated Show resolved Hide resolved
src/ListRenderer/ChecklistRenderer.ts Outdated Show resolved Hide resolved
src/ListRenderer/OrderedListRenderer.ts Outdated Show resolved Hide resolved
src/ListRenderer/UnorderedListRenderer.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/ListTabulator/index.ts Outdated Show resolved Hide resolved
src/utils/getChildItems.ts Outdated Show resolved Hide resolved
src/utils/getItemChildWrapper.ts Outdated Show resolved Hide resolved
src/utils/isLastItem.ts Outdated Show resolved Hide resolved
src/utils/itemHasSublist.ts Outdated Show resolved Hide resolved
src/utils/removeChildWrapperIfEmpty.ts Outdated Show resolved Hide resolved
src/utils/getSiblings.ts Outdated Show resolved Hide resolved
@e11sy e11sy merged commit 11dd1b6 into release/2.0 Sep 28, 2024
1 check passed
@neSpecc neSpecc deleted the keydown-refactor branch September 28, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants